<include file="public@head_top"/>
</head>
<body class="bgeee">
<include file="public@head"/>
<include file="public@sidebar_head"/>
<style>.pagesBlock{ margin-top:10px; margin-bottom:60px;}
@media ( max-width: 991px) {
	.pagesBlock{ margin-bottom: 0;}
}
</style>

<div class="newsW">
    <ul class="newsList">
    	<php>
        	$categoryIds = getbottomclass($configinfo["ecs_article_cat"],$category['id'],$configinfo['cat_id'],$configinfo['parent_id'],1);
        	$page = moduleaqvarval('page', 'intval');
            $modulewhere=array();
            $modulewhere['tablename'] = "fastxcms_apptest";
            $modulewhere['arrayclass'] = $categoryIds;
            $modulewhere['bigclassname'] = "category";
            $modulewhere['limit'] = 2;
            $modulewhere['page'] = $page;
            $modulewhere['order'] = "id desc";
            $modulewhere['langallok'] = 1;
            $appdatalist = configmodule($modulewhere);
            $pagehtml = getpagehtml($appdatalist[0]['count'], 2, $page, "?page={page}");
            foreach($appdatalist as $key=>$vo){
        </php>
        <php>$gettime = getflashtime(0.5,$key,1,1)</php>
        <li class="clearfloat wow fadeInUp" data-wow-duration="{$gettime}s">
            <div class="pic">
              <a class="img" href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['category']))}" title="{$vo.title}">
              	<empty name="vo.field1">
                    <img src="__TMPL__/public/assets/images/default-thumbnail.png"
                         alt="{$vo.title}">
                    <else/>
                    <img src="{:cmf_get_image_url($vo.field1)}"
                         alt="{$vo.title}">
                </empty>
              </a>
            </div>
            <div class="newsInner">
                <h2 class="single-line">
                	<a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['category']))}" title="{$vo.title}">
                        {$vo.title}
                    </a>
                </h2>
                <h3>
                	<i class="fa fa-calendar"></i>
                    {:date('Y-m-d',$vo.type1)}
                    
                    <i class="fa fa-eye"></i>
                    {$vo.type2}
                </h3>
                <p class="multi-line">{$vo.field2}</p>
                <a class="more" href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['category']))}" title="{$vo.title}">{$configlang['lookdetail']}</a>
            </div>
        </li>
        <php>}</php>
    </ul>
    
    <div class="pagesBlock">
        {$pagehtml}
    </div>
    
</div>
                    
<include file="public@sidebar_foot"/>
<include file="public@footer"/>
</body>    
</html>